package com.cjw.campus.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.MatriculationYearTable;
import com.cjw.campus.system.mapper.MatriculationYearTableMapper;
import com.cjw.campus.system.service.IMatriculationYearTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjw.campus.system.vo.MatriculationYearTableVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 入学年份表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2022-11-21
 */
@Service
public class MatriculationYearTableServiceImpl extends ServiceImpl<MatriculationYearTableMapper, MatriculationYearTable> implements IMatriculationYearTableService {

    @Override
    public IPage<MatriculationYearTableVO> listPageByYear(IPage<MatriculationYearTableVO> page) {
        return baseMapper.listPageByYear(page);
    }

    @Override
    public IPage<MatriculationYearTableVO> listPageByYearCodeAndName(IPage<MatriculationYearTableVO> page, String matriculationYearCode, String matriculationYearName) {
        return baseMapper.listPageByYearCodeAndName(page, matriculationYearCode, matriculationYearName);
    }

    @Override
    public MatriculationYearTableVO listByYearId(Long matriculationYearId) {
        return baseMapper.listByYearId(matriculationYearId);
    }

}
